// out: ../css/style.css, compress: true, sourceMap: false
@lightBlue: rgba(4, 10, 83, 0.86);
@lightBlack: rgba(0, 0, 0, 0.24);

body {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: url(../objs/ball.jpg) center / cover no-repeat;
  font-family: '微软雅黑';
}

.hide {
  display: none;
}
.the-label {
  position: absolute;
  padding: 10px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 5px;
}

.the-modal {
  padding: 5px;
  line-height: 20px;
  pointer-events: none;
  transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: rgb(174, 174, 174) 0px 0px 10px;
  border-radius: 3px;
  font-size: 12px;
  color: rgb(87, 87, 87);
}

.the-animate-modal {
  padding: 2px;
  line-height: 20px;
  pointer-events: none;
  transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  border-radius: 3px;
  font-size: 12px;
  background-color: rgba(39, 70, 245, 0.7);
  color: #fff;
}

.the-warn-modal {
  padding: 10px;
  line-height: 20px;
  pointer-events: none;
  transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  border-radius: 3px;
  font-size: 14px;
  background-color: rgba(255, 94, 0, 0.884);
  color: #fff;
  img {
    width: 150px;
    height: 50px;
  }
}
.top-camera-block {
  position: fixed;
  left: 400px;
  top: 20px;
  height: 200px;
  width: 300px;
  background: @lightBlack;
  box-sizing: border-box;
  .camera-title {
    line-height: 3;
    text-align: center;
    color: #ff0000;
  }
  .photo-container {
    padding-top: 20px;
    display: flex;
    justify-content: space-around;
    .photo {
      width: 45%;
    }
  }
}
.left-dashboard {
  position: fixed;
  width: 300px;
  height: 100vh;
  padding: 8px 0 0 20px;
  .date-time {
    padding-bottom: 10px;
    display: flex;
    color: white;
    border-bottom: 3px solid @lightBlue;
    .time {
      padding-right: 20px;
      font-size: 30px;
      border-right: 3px solid @lightBlue;
    }
    .date {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      padding-left: 20px;
      line-height: 1.5;
      font-size: 14px;
    }
  }
  .info-block {
    .info-title {
      margin-top: 20px;
      padding: 5px;
      text-align: center;
      color: #46c2f3;
      font-size: 20px;
      background: #000;
    }
  }
  .info-item {
    position: relative;
    margin-top: 20px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
    color: #fff;
    background: @lightBlack;
    &::after {
      content: '';
      width: 100%;
      position: absolute;
      bottom: 0;
      height: 2px;
    }
    &.info-1 {
      &::after {
        background: linear-gradient(90deg, #054664, #38b5e8, #054664);
        background-size: 400% 400%;
        animation: blinds 7s ease infinite;
      }
    }
    &.info-2 {
      &::after {
        background: linear-gradient(1.25turn, #522715, #e78358, #522715);
        background-size: 400% 400%;
        animation: blinds 7s ease infinite;
      }
    }
    &.info-3 {
      &::after {
        background: linear-gradient(1.25turn, #0d390f, #43d749, #0d390f);
        background-size: 400% 400%;
        animation: blinds 7s ease infinite;
      }
    }
    &.info-4 {
      &::after {
        background: linear-gradient(1.25turn, #312d6c, #6961eb, #312d6c);
        background-size: 400% 400%;
        animation: blinds 7s ease infinite;
      }
    }
  }
  .car-park-info {
    margin-top: 40px;
    background: @lightBlack;
    font-size: 14px;
    color: #fff;
    .car-park {
      padding: 8px 0;
      display: flex;
      align-items: center;
      justify-content: space-around;
      &:not(:last-child) {
        border-bottom: 1px solid @lightBlack;
      }
    }
  }
  .repair-time {
    margin-top: 40px;
    padding: 10px 5px;
    background: @lightBlack;
    color: #46c2f3;
    .repair-item {
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .process {
      position: relative;
      width: 145px;
      height: 10px;
      box-sizing: border-box;
      .top-process {
        position: absolute;
        width: 100%;
        height: 10px;
        background: #46c2f3;
        z-index: 1;
      }
      &::after {
        content: '';
        width: 100%;
        height: 10px;
        position: absolute;
        background: #315c89;
      }
    }
    .repair-title {
      margin-top: 10px;
      padding: 5px;
      text-align: center;
      color: #46c2f3;
      font-size: 20px;
      background: #000;
    }
  }
  .equip-block {
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    .equip-circle {
      width: 70px;
      height: 70px;
      padding: 0;
      text-align: center;
      //font-size: 18px;
      color: #46c2f3;
      border-radius: 50%;
      border: 3px solid @lightBlue;
      background: @lightBlack;
      .equip-percent {
        padding-top: 6px;
      }
      .equip-title {
        font-size: 12px;
        color: #fff;
      }
      .unit {
        font-size: 12px;
        color: #ddd;
      }
    }
    &.two-circle {
      justify-content: space-around;
      .equip-circle {
        padding-top: 5px;
        width: 90px;
        height: 90px;
        box-sizing: border-box;
      }
    }
  }
  .equip-info {
    margin-top: 20px;
    .equip-item {
      margin-top: 20px;
      padding: 10px;
      background: rgba(20, 24, 68, .8);
      .equip-type {
        font-size: 14px;
        color: #ddd;
      }
      .equip-title {
        margin-top: 10px;
        text-align: center;
        font-size: 20px;
        color: #46c2f3;
      }
      &.error-equip {
        .equip-title {
          color: #d94949;
        }
      }
    }
  }
  .charts-block {
    padding-top: 20px;
    .chart-item {
      margin-bottom: 20px;
      background: @lightBlack;
      .the-chart {
        width: 300px;
        height: 100px;
      }
      .chart-title {
        margin: 0 auto;
        padding: 10px;
        width: 100px;
        text-align: center;
        font-size: 16px;
        color: #46c2f3;
      }
    }
  }
  .content {
    display: flex;
    .left {
      width: 20%;
      display: flex;
      flex-direction: column;
    }
    .ctrl-block {
      padding: 20px 0 0 7px;
      position: relative;
      border-left: 3px solid @lightBlue;
      .ctrl {
        position: relative;
        cursor: pointer;
        &:hover .ctrl-item,
        &.active .ctrl-item  {
          background: @lightBlue;
        }
      }
      .ctrl-item {
        margin-top: 10px;
        width: 40px;
        height: 40px;
        background: @lightBlack;
        transform: rotateZ(30deg) skew(30deg);
      }
      .icon {
        position: absolute;
        width: 18px;
        height: 18px;
        &.home-icon {
          top: 12px;
          left: 12px;
          z-index: 1;
          background: url(../imgs/home.png) center / contain no-repeat;
        }
        &.plane-icon {
          top: 12px;
          left: 12px;
          z-index: 1;
          background: url(../imgs/plane.png) center / contain no-repeat;
        }
        &.cloud-icon {
          top: 12px;
          left: 12px;
          z-index: 1;
          background: url(../imgs/cloud.png) center / contain no-repeat;
        }
        &.sheild-icon {
          top: 12px;
          left: 12px;
          z-index: 1;
          background: url(../imgs/sheild.png) center / contain no-repeat;
        }
      }
    }
    .title-block {
      margin-top: 20px;
      writing-mode: vertical-lr;
      font-size: 20px;
      color: #fff;
      .text {
        padding: 60px 5px;
        line-height: 40px;
        background: @lightBlue;
      }
    }
    .filter-block {
      margin-top: 20px;
      padding: 0 0 0 7px;
      position: relative;
      border-left: 3px solid @lightBlue;
      .filter {
        position: relative;
        cursor: pointer;
        &:hover .filter-item,
        &.active .filter-item  {
          background: @lightBlue;
        }
      }
      .filter-item {
        margin-top: 10px;
        width: 40px;
        height: 40px;
        background: @lightBlack;
        transform: rotateZ(90deg) skew(30deg);
      }
      .filter-title {
        position: absolute;
        top: 10px;
        left: 4px;
        color: #fff;
      }
      .filter-info {
        padding: 40px 0;
        font-size: 17px;
        color: #fff;
      }
    }
    .right {
      width: 80%;
    }
  }
}
.right-dashboard {
  position: fixed;
  width: 400px;
  height: 100vh;
  right: 0;
  top: 0;
  float: right;
  z-index: 1000;
  padding: 8px 20px 0 0;
  background-color: rgba(0, 0, 0, 0.1);
  .main-container {
    height: 100%;
    width: 100%;
    .menu-map {
      .center-circle {
        width: 306px;
        height: 306px;
        border: 10px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        margin: 0 auto;
      }
      .second-circle {
        width: 286px;
        height: 286px;
        border: 2px dashed rgba(117, 175, 255, 0.9);
        border-radius: 50%;
        margin: 10px auto;
      }
      .third-circle {
        width: 260px;
        height: 260px;
        border: 6px solid rgba(50, 81, 132, 0.8);
        border-radius: 50%;
        margin: 5px auto;
      }
      .forth-circle {
        width: 240px;
        height: 240px;
        border: 1px solid rgba(117, 175, 255, 1);
        border-radius: 50%;
        margin: 10px auto;
        .col-container {
          float: left;
          font-size: 12px;
          padding-top: 10px;
          padding-left: 20px;
          span {
            color: #75afff;
          }
          p {
            color: #75afff;
          }
          b {
            color: #db761e;
          }
        }
        .left-col {
          padding-top: 80px;
          b {
            font-size: 32px;
            display: block;
          }
          span {
            display: inline-block;
            text-align: center;
            width: 100%;
          }
        }
        .right-col {
          padding-top: 30px;
          b {
            font-size: 14px;
            margin-left: 10px;
          }
          p {
            margin: 0;
            line-height: 24px;
          }
        }
      }
    }
  }
}
@keyframes blinds {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
// 弹框样式
.model-wrapper-bk {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  text-align: center;
  background-color: rgba(0, 0, 0, .3);
  z-index: 9;
}
.model-wrapper {
  position: fixed;
  width: 528px;
  height: 560px;
  left: 0;
  right: 0;
  top: 20%;
  bottom: 0;
  margin: 0 auto;
  text-align: center;
  z-index: 999;
  &::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 0;
    vertical-align: middle;
  }
  .model {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    width: 528px;
    height: 560px;
    background: rgba(0, 0, 0, .3);
    -webkit-animation-name: slideInDown;
    animation-name: slideInDown;
    -webkit-animation-duration: .5s;
    animation-duration: .5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    .model-content {
      .info {
        padding: 20px;
        font-size: 14px;
        color: #fff;
        border-bottom: 1px solid #fff;
      }
      .travel {
        position: relative;
        margin-top: 20px;
        line-height: 3;
        color: #fff;
        &:before {
          content: '';
          position: absolute;
          left: 90px;
          top: 34px;
          width: 12px;
          height: 80px;
          background: url(../imgs/dot.png) center no-repeat;
        }
        .travel-item {
          background: rgba(0, 0, 0, .3);
        }
        .use-time {
          padding: 5px 0;
          font-size: 14px;
        }
        .start-location {
          text-align: center;
        }
        .stop-location {
          text-align: center;
        }
      }
      .tips {
        padding-top: 20px;
        .tips-title {
          font-size: 16px;
          font-weight: bold;
          color: #fff;
        }
        margin-top: 40px;
        border-top: 1px solid #fff;
        font-size: 14px;
        color: #fff;
      }
    }
    .model-btn {
      display: block;
      width: 332px;
      height: 72px;
      line-height: 72px;
      text-decoration: none;
      font-size: 30px;
      color: #fff;
      border-radius: 2rem;
      background-image: -moz-linear-gradient( 90deg, rgb(254,91,88) 0%, rgb(252,92,89) 39%, rgb(250,93,89) 100%);
      background-image: -webkit-linear-gradient( 90deg, rgb(254,91,88) 0%, rgb(252,92,89) 39%, rgb(250,93,89) 100%);
      background-image: -ms-linear-gradient( 90deg, rgb(254,91,88) 0%, rgb(252,92,89) 39%, rgb(250,93,89) 100%);
      box-shadow: 0px 8px 0px 0px rgba(229, 152, 42, 0.8);
      transition: transform .3s ease;
      &:hover {
        transform: translateY(-5px);
      }
    }
  }
}
@-webkit-keyframes slideInDown {
  from {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInDown {
  from {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
